package com.thoughtworks;


public class Return extends BookCheckout {
    public static int returnBook(String name){
        int flag=0;
        String bookNames[]=new String[]{"Java Puzzlers","Python:The Complete Reference","Two States","Success Series","Frankenstein"};
        for(int i=0;i<bookNames.length;i++)
            if (name.equals(checkOutArray[i])) {
                flag = 1;
                checkOutArray[i]=null;
            }

    return flag;
    }
}
